package org.asiainfo.flowable.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.asiainfo.common.core.validate.AddGroup;
import org.asiainfo.common.core.validate.EditGroup;
import org.asiainfo.flowable.domain.WfForm;
import lombok.Data;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.EqualsAndHashCode;
import org.asiainfo.common.mybatis.stream.core.domain.BaseEntity;

/**
 * 业务对象 wf_form
 *
 * @author dotor-ww
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WfForm.class, reverseConvertGenerate = false)
public class WfFormBo extends BaseEntity {

    /**
     * 表单主键
     */
    @NotNull(message = "表单ID不能为空", groups = { EditGroup.class })
    private Long formId;
    /**
     * 表单名称
     */
    @NotBlank(message = "表单名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String formName;
    /**
     * 表单生成规则
     */
    @NotBlank(message = "表单生成规则", groups = { AddGroup.class, EditGroup.class })
    private String rule;
    /**
     * 组件参数配置
     */
    @NotBlank(message = "组件参数配置", groups = { AddGroup.class, EditGroup.class })
    private String options;
    /**
     * 备注
     */
    private String remark;
}

